import request from '@/utils/request'

// 查询新闻疾病关联列表
export function listNewsDisease(query) {
  return request({
    url: '/ydz/newsDisease/list',
    method: 'get',
    params: query
  })
}

// 查询新闻疾病关联详细
export function getNewsDisease(id) {
  return request({
    url: '/ydz/newsDisease/' + id,
    method: 'get'
  })
}

// 新增新闻疾病关联
export function addNewsDisease(data) {
  return request({
    url: '/ydz/newsDisease',
    method: 'post',
    data: data
  })
}

// 修改新闻疾病关联
export function updateNewsDisease(data) {
  return request({
    url: '/ydz/newsDisease',
    method: 'put',
    data: data
  })
}

// 删除新闻疾病关联
export function delNewsDisease(id) {
  return request({
    url: '/ydz/newsDisease/' + id,
    method: 'delete'
  })
}
